Program Description:

[C,d] = pcavp1(p, q)

The function is for calculating PCA, the input is 7.bmp.

p: How many sub-images are used for each image
q: How many dimensions will be considered
C: The vector transformed
d: The distance among the vectors

[v, index] = kmean(x, c)

The function calculates the clustering of vectors

x: The input vectors
c: how many clusters
v: the returned cluster centers
index: the returned group numbers of each vector

run: run for each dimension from 18 to 1
